package com.ruoyi.loginAndregist.service.impl;

import java.util.List;

import com.ruoyi.loginAndregist.domain.WxOpinion2;
import com.ruoyi.loginAndregist.mapper.WxOpinion2Mapper;
import com.ruoyi.loginAndregist.service.IWxOpinionService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

/**
 * wx反馈意见Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-12
 */
@Service
public class WxOpinionService2Impl implements IWxOpinionService2
{
    @Autowired
    private WxOpinion2Mapper wxOpinion2Mapper;

    /**
     * 查询wx反馈意见
     * 
     * @param id wx反馈意见ID
     * @return wx反馈意见
     */
    @Override
    public WxOpinion2 selectWxOpinionById(Long id)
    {
        return wxOpinion2Mapper.selectWxOpinionById(id);
    }

    /**
     * 查询wx反馈意见列表
     * 
     * @param wxOpinion2 wx反馈意见
     * @return wx反馈意见
     */
    @Override
    public List<WxOpinion2> selectWxOpinionList(WxOpinion2 wxOpinion2)
    {
        return wxOpinion2Mapper.selectWxOpinionList(wxOpinion2);
    }

    /**
     * 新增wx反馈意见
     * 
     * @param wxOpinion2 wx反馈意见
     * @return 结果
     */
    @Override
    public int insertWxOpinion(WxOpinion2 wxOpinion2)
    {
        return wxOpinion2Mapper.insertWxOpinion(wxOpinion2);
    }

    /**
     * 修改wx反馈意见
     * 
     * @param wxOpinion2 wx反馈意见
     * @return 结果
     */
    @Override
    public int updateWxOpinion(WxOpinion2 wxOpinion2)
    {
        return wxOpinion2Mapper.updateWxOpinion(wxOpinion2);
    }

    /**
     * 删除wx反馈意见对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWxOpinionByIds(String ids)
    {
        return wxOpinion2Mapper.deleteWxOpinionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除wx反馈意见信息
     * 
     * @param id wx反馈意见ID
     * @return 结果
     */
    @Override
    public int deleteWxOpinionById(Long id)
    {
        return wxOpinion2Mapper.deleteWxOpinionById(id);
    }
}
